<template lang="pug">
    skin(@up="up",@down="down",@yes="yes",@back="back",@duringUp="up",@duringDown="down")
        div(class="flex-column h3")
            div(class="flex-column-item flex-center-center under-line") --动态血糖仪连接--
            div(class="flex-column-item flex-row",
            v-for="(item,index) in items",
            :class="{'selected-text': index == currentItemIndex ? true: false}")
                div(class="flex-row-item") {{item.name}}
</template>

<script>
export default {
  data() {
    return {
      items: [
        {
          name: "IDC:20180508746"
        },
        {
          name: "MAC:01-02-00-55"
        },
        {
          name: "HST:0000.0000.03"
        }
      ],
      currentItem: null,
      currentItemIndex: 0
    };
  },
  computed: {},
  methods: {
    up() {
    //   this.currentItemIndex = this.currentItemIndex == 0 ? 1 : 0;
    //   this.currentItem = this.items[this.currentItemIndex];
    },
    down() {
    //   this.currentItemIndex = this.currentItemIndex == 0 ? 1 : 0;
    //   this.currentItem = this.items[this.currentItemIndex];
    },

    back() {
      this.$router.push("/machine-setting?index=4");
    },
    yes() {
    //   this.visible = !this.visible;
    }
  },
  created() {
  }
};
</script>

<style lang="less">
</style>
